package com.action;


import java.util.List;

import com.dao.DepartDao;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.proj.Depart;


public class DepartAction extends ActionSupport {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//登录用户数据模块
		private Depart depart;
		public String departCheck() throws ClassNotFoundException{
			DepartDao departdao = new DepartDao();
			
			List <Depart> list = departdao.getdepartname();
			ActionContext context = ActionContext.getContext();
			context.put("list", list);
			
		return SUCCESS;
		}
		public Depart getDepart() {
			return depart;
		}
		public void setDepart(Depart depart) {
			this.depart = depart;
		}
		
		
}
